package Chapter5;

class MyThread1 extends Thread{
	public void run() {
		while(true) {
			System.out.println("thread");
		}
	}
}

public class Example02 {
	public static void main(String[] args) {
		MyThread1 thread=new MyThread1();
		thread.start();
		while(true) {
			System.out.println("main");
		}
	}

}
